package com.weyoung.admin.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weyoung.admin.dto.req.GroupAgeDTO;
import com.weyoung.admin.dto.req.GroupGenderDTO;
import com.weyoung.admin.dto.req.GroupMonthDTO;
import com.weyoung.admin.dto.req.GroupUserDTO;
import com.weyoung.common.model.entity.UserDetailDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 86182
* @description 针对表【user_detail(用户详细信息表)】的数据库操作Mapper
* @createDate 2025-04-14 11:44:53
* @Entity com.weyoung.admin.domain.UserDetail
*/
@Mapper
public interface UserDetailMapper extends BaseMapper<UserDetailDO> {

    Long getAgeCountByTimes(@Param("startTime") Date startTime,@Param("endTime") Date endTime);

    Long getAgeCountByAddress(String address);

    List<GroupUserDTO> selectList();

    List<GroupGenderDTO> selectGenderCount();

    List<GroupAgeDTO> selectGroupAge();

    List<GroupMonthDTO> getGroupMonths();

    List<UserDetailDO> finlist();
}




